/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kamus.manager;

import com.kamus.DB;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class BaseMgr {

    protected Connection connection;
    protected PreparedStatement psmnt;
    protected ResultSet rs;

    public Connection getConnection() {
        if (connection == null) {
            connection = DB.getConnection();
        }
        return connection;
    }

    public void cekConnection() {
        this.connection = getConnection();
    }
}
